﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:Eaglight"
                    xmlns:lc="clr-namespace:LightControls;assembly=LightControls">

    <Style TargetType="local:DrawToolbar">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:DrawToolbar">
                    <StackPanel x:Name="LayoutRoot"
                                Background="{TemplateBinding Background}"
                                FlowDirection="{TemplateBinding FlowDirection}"
                                Orientation="{TemplateBinding Orientation}">
                        <StackPanel.Resources>
                            <ResourceDictionary>
                                <ResourceDictionary.MergedDictionaries>
                                    <ResourceDictionary Source="/libEL;component/res/symbols/DefaultSymbols.xaml"/>
                                </ResourceDictionary.MergedDictionaries>
                            </ResourceDictionary>
                        </StackPanel.Resources>
                        <lc:LcImagePushRadioButton 
                            x:Name="btnFreehand"
                            GroupName="MAPPING"
                            IsRounded="False" 
                            GradientBrush="{TemplateBinding ButtonGradientBrush}" 
                            FocusBrush="{TemplateBinding ButtonFocusBrush}"
                            ImageStretch="{TemplateBinding ButtonImageStretch}"
                            ImageSource="/libEL;component/res/images/draw-freehand.png"
                            Width="{TemplateBinding ButtonWidth}" Height="{TemplateBinding ButtonHeight}"
                            VerticalAlignment="Center" 
                            HorizontalAlignment="Center"/>

                        <lc:LcImagePushRadioButton 
                            x:Name="btnPoint"
                            GroupName="MAPPING"
                            IsRounded="False" 
                            GradientBrush="{TemplateBinding ButtonGradientBrush}" 
                            FocusBrush="{TemplateBinding ButtonFocusBrush}"
                            ImageStretch="{TemplateBinding ButtonImageStretch}"
                            ImageSource="/libEL;component/res/images/draw-point.png"
                            Width="{TemplateBinding ButtonWidth}" Height="{TemplateBinding ButtonHeight}"
                            VerticalAlignment="Center" 
                            HorizontalAlignment="Center"/>

                        <lc:LcImagePushRadioButton
                            x:Name="btnPolygon"
                            GroupName="MAPPING"
                            GradientBrush="{TemplateBinding ButtonGradientBrush}" 
                            FocusBrush="{TemplateBinding ButtonFocusBrush}"
                            ImageStretch="{TemplateBinding ButtonImageStretch}"
                            ImageSource="/libEL;component/res/images/draw-polygon.png"
                            IsRounded="False" 
                            Width="{TemplateBinding ButtonWidth}" Height="{TemplateBinding ButtonHeight}"
                            VerticalAlignment="Center" 
                            HorizontalAlignment="Center"/>
                        
                        <lc:LcImagePushRadioButton
                            x:Name="btnPolyline"
                            GroupName="MAPPING"
                            GradientBrush="{TemplateBinding ButtonGradientBrush}" 
                            FocusBrush="{TemplateBinding ButtonFocusBrush}"
                            ImageStretch="{TemplateBinding ButtonImageStretch}"
                            ImageSource="/libEL;component/res/images/draw-polyline.png"
                            IsRounded="False" 
                            Width="{TemplateBinding ButtonWidth}" Height="{TemplateBinding ButtonHeight}"
                            VerticalAlignment="Center" 
                            HorizontalAlignment="Center"/>
                        <lc:LcImagePushRadioButton
                            x:Name="btnRectangle"
                            GroupName="MAPPING"
                            GradientBrush="{TemplateBinding ButtonGradientBrush}" 
                            FocusBrush="{TemplateBinding ButtonFocusBrush}"
                            ImageStretch="{TemplateBinding ButtonImageStretch}"
                            ImageSource="/libEL;component/res/images/draw-rectangle.png"
                            IsRounded="False" 
                            Width="{TemplateBinding ButtonWidth}" Height="{TemplateBinding ButtonHeight}"
                            VerticalAlignment="Center" 
                            HorizontalAlignment="Center"/>
                        <lc:LcImagePushRadioButton
                            x:Name="btnSelect"
                            GroupName="MAPPING"
                            GradientBrush="{TemplateBinding ButtonGradientBrush}" 
                            FocusBrush="{TemplateBinding ButtonFocusBrush}"
                            ImageStretch="{TemplateBinding ButtonImageStretch}"
                            ImageSource="/libEL;component/res/images/select.png"
                            IsRounded="False" 
                            Width="{TemplateBinding ButtonWidth}" Height="{TemplateBinding ButtonHeight}"
                            VerticalAlignment="Center" 
                            HorizontalAlignment="Center"/>
                        <lc:LcImageButton
                            x:Name="btnClear"
                            GradientBrush="{TemplateBinding ButtonGradientBrush}" 
                            FocusBrush="{TemplateBinding ButtonFocusBrush}"
                            ImageStretch="{TemplateBinding ButtonImageStretch}"
                            ImageSource="/libEL;component/res/images/draw-clear.png"
                            IsRounded="False" 
                            Width="{TemplateBinding ButtonWidth}" Height="{TemplateBinding ButtonHeight}"
                            VerticalAlignment="Center" 
                            HorizontalAlignment="Center"/>
                        
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter> 
    </Style>
</ResourceDictionary>
    